<template>
  <div class="tab-container">
    <el-tabs style='margin-top:5px;' v-model="activeName" type="border-card">
      <el-tab-pane v-for="item in tabMapOptions" :label="item.display_name" :key='item.key' :name="item.key">
        <span slot="label"> {{item.display_name}}</span>
        <keep-alive>
          <NotificationPane v-if="activeName==item.key" :is_handle="item.is_handle" >
          </NotificationPane>
        </keep-alive>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import NotificationPane from '@/views/dashboard/components/notificationPane'
export default {
  name: 'notifications',
  components: { NotificationPane },
  data() {
    return {
      tabMapOptions: [
        { key: 'unread', display_name: '未读', is_handle: '0' },
        { key: 'read', display_name: '已读', is_handle: '1' },
        { key: 'all', display_name: '所有', is_handle: 'all' }
      ],
      activeName: 'unread'
    }
  },
  created() {
  },
  methods: {
  }
}
</script>
<style scoped>

</style>

